/*﻿/**
 * @file slave_cmd.h
 * @brief this is a brief description
 * @details this is the detail description.
 * @author fulong 
 * @data 7/8/2014
 * @version 1.0
 * @par Copyright (c):
 * @par First build
 *     version: fulong 
 *     data: 7/8/2014
 */
#ifndef __SLAVE_CMD_H__
#define __SLAVE_CMD_H__
#include "../../../hal_include/hal_types.h"

extern uint8 cmd_read_coil_status(const uint8 *,uint8*);
extern uint8 cmd_read_input_status(uint8 *data_buf, uint8 *rsp_buf);
extern uint8 cmd_read_holding_regs(uint8 *data_buf, uint8 *rsp_buf);
extern uint8 cmd_read_input_regs(uint8 *data_buf, uint8 *rsp_buf);
extern uint8 cmd_force_single_coil(uint8*data_buf,uint8 * rsp_buf);
extern uint8 cmd_preset_single_reg(uint8 *data_buf, uint8 *rsp_buf);
extern uint8 cmd_force_multiple_regs(uint8 *data_buf, uint8 *rsp_buf);


#endif /* __SLAVE_CMD_H__ */


